import request from 'utils/request'

// 获取所有支持语言
export function getAllLanguages() {
    return request({
        url: '/language/all',
        method: 'get'
    })
}

// 注册
export function registered(data) {
    return request({
        url: '/student/registered',
        method: 'post',
        data: data
    })
}

// 登录
export function login(data) {
    return request({
        url: '/student/login',
        method: 'post',
        data: data
    })
}
